package tr.richfacesext.examples;

import java.util.Date;

import org.joda.time.DateTime;
import org.joda.time.Hours;
import org.joda.time.Minutes;
import org.joda.time.Weeks;

public class ElapsedTimeController {

	private DateTime currentDate = new DateTime(); 
	
	private DateTime date1 = currentDate.minus(Minutes.TWO);
	
	private DateTime date2 = currentDate.minus(Hours.FIVE);
	
	private DateTime date3 = currentDate.minus(Weeks.ONE);


	public Date getDate1() {
		return date1.toDate();
	}

	public Date getDate2() {
		return date2.toDate();
	}

	public Date getDate3() {
		return date3.toDate();
	}

	public Date getCurrentDate() {
		return currentDate.toDate();
	}
}
